package com.my.demo.demo2.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "retrofit",ignoreInvalidFields = true)
public class RetrofitProperty {

//    public final static String PREFIX = "retrofit";

    /**
     * 连接超时
     */
    private Long connectionTimeout = 5L;

    private Long writeTimeout = 3L;

    private Long readTimeout = 5L;

    private Long keepAliveTimeout = 5L;

    private Integer maxIdleConnections = 10;

    private Integer retrys = 1;

    public Long getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(Long connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    public Long getWriteTimeout() {
        return writeTimeout;
    }

    public void setWriteTimeout(Long writeTimeout) {
        this.writeTimeout = writeTimeout;
    }

    public Long getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(Long readTimeout) {
        this.readTimeout = readTimeout;
    }

    public Long getKeepAliveTimeout() {
        return keepAliveTimeout;
    }

    public void setKeepAliveTimeout(Long keepAliveTimeout) {
        this.keepAliveTimeout = keepAliveTimeout;
    }

    public Integer getMaxIdleConnections() {
        return maxIdleConnections;
    }

    public void setMaxIdleConnections(Integer maxIdleConnections) {
        this.maxIdleConnections = maxIdleConnections;
    }

    public Integer getRetrys() {
        return retrys;
    }

    public void setRetrys(Integer retrys) {
        this.retrys = retrys;
    }
}